package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Sbxx generated by hbm2java
 */
@Entity
@Table(name = "sbxx")
public class Sbxx implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private boolean sfqdht;
    private Boolean sfjnbx;
    private Boolean sfjntx;
    private Boolean sfasfgz;
    private String jcjl;

    public Sbxx()
    {
    }

    public Sbxx( Long id, boolean sfqdht )
    {
        this.id = id;
        this.sfqdht = sfqdht;
    }

    public Sbxx( Long id,
                 Jbqk jbqk,
                 String username,
                 String operation,
                 Date optdate,
                 boolean sfqdht,
                 Boolean sfjnbx,
                 Boolean sfjntx,
                 Boolean sfasfgz,
                 String jcjl)
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.sfqdht = sfqdht;
        this.sfjnbx = sfjnbx;
        this.sfjntx = sfjntx;
        this.sfasfgz = sfasfgz;
        this.jcjl = jcjl;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @OneToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "sfqdht", nullable = false)
    public boolean isSfqdht()
    {
        return this.sfqdht;
    }

    public void setSfqdht( boolean sfqdht )
    {
        this.sfqdht = sfqdht;
    }

    @Column(name = "sfjnbx")
    public Boolean getSfjnbx()
    {
        return this.sfjnbx;
    }

    public void setSfjnbx( Boolean sfjnbx )
    {
        this.sfjnbx = sfjnbx;
    }

    @Column(name = "sfjntx")
    public Boolean getSfjntx()
    {
        return this.sfjntx;
    }

    public void setSfjntx( Boolean sfjntx )
    {
        this.sfjntx = sfjntx;
    }

    @Column(name = "sfasfgz")
    public Boolean getSfasfgz()
    {
        return this.sfasfgz;
    }

    public void setSfasfgz( Boolean sfasfgz )
    {
        this.sfasfgz = sfasfgz;
    }

    @Column(name = "jcjl", length = 100)
    public String getJcjl()
    {
        return this.jcjl;
    }

    public void setJcjl( String jcjl )
    {
        this.jcjl = jcjl;
    }
}
